package imgshare.model.vo;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

public class UserAccountForm {

    @NotNull(message = "标识符不能为空")
    private Integer id;

    /**
     * 显示用昵称
     */
    @NotBlank(message = "昵称不能为空")
    private String nickname;

    @NotBlank(message = "年龄不能为空")
    private Byte age;

    @NotBlank(message = "性别不能为空")
    private Byte gender;

    /**
     * 头像图片url地址
     */
    private String avatar;

    /**
     * 个人简介
     */
    @NotBlank(message = "个人简介不能为空")
    private String desc;

    @NotBlank(message = "邮箱地址不能为空")
    @Email(message = "邮箱格式错误")
    private String email;


    private String phonenumber;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Byte getAge() {
        return age;
    }

    public void setAge(Byte age) {
        this.age = age;
    }

    public Byte getGender() {
        return gender;
    }

    public void setGender(Byte gender) {
        this.gender = gender;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }
}
